<template>
  <div>
    <h1>hook求和{{ sum }}</h1>
    <h1>放大倍数：{{ bigSum }}</h1>
    <button @click="add">加我+1</button>
  </div>
</template>

<script setup lang="ts">
// import useSum from "@/hooks/useSum";
import { useSumFn } from "@/hooks/useSum";
console.log(useSumFn());
const { sum, add, bigSum } = useSumFn();
</script>

<style scoped></style>
